package org.example.weboj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author wza
 * @since 2025-04-03
 */
@ApiModel(value = "Problems对象", description = "")
@Data
public class Problems implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;

    private String description;

    private String difficulty;

    @ApiModelProperty("in milliseconds")
    private Integer timeLimit;

    @ApiModelProperty("in megabytes")
    private Integer memoryLimit;

    private LocalDateTime createdAt;

    private Long authorId;

}
